package com.example.pattern.composite;

/**
 * 子节点：具体部门
 *
 * @author FM_南风
 * @date 2024/7/3 13:55
 */
public class ConcreteDepartment implements Department{
    private String name;

    public ConcreteDepartment(String name) {
        this.name = name;
    }

    @Override
    public void printDepartmentName() {
        System.out.println("Department: " + name);
    }
}
